﻿
#ifndef QGEOTILEFETCHERCUSTOM_H
#define QGEOTILEFETCHERCUSTOM_H

#include <private/qgeotilefetcher_p.h>
#include <QTimer>
#include <QNetworkAccessManager>

class QGeoTileFetcherCustom : public QGeoTileFetcher
{
    Q_OBJECT
public:
    QGeoTileFetcherCustom(QGeoMappingManagerEngine* parent = nullptr);
    ~QGeoTileFetcherCustom() = default;

public slots:
    void                    timeout         ();

private:
    QGeoTiledMapReply* getTileImage(const QGeoTileSpec& spec) override;

private:
    QNetworkAccessManager* _networkManager = nullptr;
    QTimer                 _timer;
};

#endif // QGEOTILEFETCHERCUSTOM_H
